//
// Created by Asus on 2025/6/2.
//

#include <iostream>
#include <stack>
#include <bits/ostream.tcc>
using namespace std;

void demo01() {
    stack<int> s;
    s.push(10);
    s.push(20);
    s.push(30);

    while(!s.empty()) {
        cout << "s.top: " << s.top() << endl;
        s.pop();
    }
    cout << "栈的大小为：" << s.size() << endl;
}

int main(int argc, char *argv[]) {
    demo01();
    return 0;
}
